package com.company.cloud.art.modules.api.response;

import com.company.cloud.product.modules.api.response.Product;
import com.company.cloud.product.modules.api.response.ProductSimple;
import com.company.cloud.tag.modules.api.response.Label;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class Artist {

    @ApiModelProperty(value = "艺术家编号")
    private String artistNo;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "保姆名称首拼音")
    private String nameFirstPy;

    @ApiModelProperty(value = "头像")
    private String headImg;

    @ApiModelProperty(value = "背景图片")
    private String backgroundImg;


    @ApiModelProperty(value = "分类")
    private String type;


    @ApiModelProperty(value = "性别")
    private String sex;


    @ApiModelProperty(value = "国家")
    private String nationCode;


    @ApiModelProperty(value = "概述(title)")
    private String title;


    @ApiModelProperty(value = "代表作")
    private List<ProductSimple> representativeWork;

    @ApiModelProperty(value = "代表作2")
    private List<Product> representativeWork2;

    @ApiModelProperty(value = "简介")
    private String memo;

    @ApiModelProperty(value = "图片")
    private String imgs;


    @ApiModelProperty(value = "详情(图文)")
    private String detail;


    @ApiModelProperty(value = "出身年月(yyyymm)")
    private String birthday;



    @ApiModelProperty(value = "标签")
    private List<Label> tags;


    @ApiModelProperty(value = "排序")
    private Integer orders;


    @ApiModelProperty(value = "关注数")
    private Integer followNum=0;

    @ApiModelProperty(value = "是否被我关注")
    private String isFollowed;

    @ApiModelProperty(value = "作品数")
    private Integer prdNum=0;

    @ApiModelProperty(value = "文章数")
    private Integer articleNum=0;



    @ApiModelProperty(value = "SEO关键字")
    private String metaKeywords;


    @ApiModelProperty(value = "SEO描述信息")
    private String metaDescription;

    @ApiModelProperty(value = "背景颜色")
    private String backgroundColour;

    @ApiModelProperty(value = "业务字段1")
    private String bizValue1;

    @ApiModelProperty(value = "业务字段2")
    private String bizValue2;

    @ApiModelProperty(value = "业务字段3")
    private String bizValue3;

    @ApiModelProperty(value = "业务字段4")
    private String bizValue4;

    @ApiModelProperty(value = "业务字段5")
    private String bizValue5;


    @ApiModelProperty(value = "业务字段6")
    private String bizValue6;

    @ApiModelProperty(value = "业务字段7")
    private String bizValue7;

    @ApiModelProperty(value = "业务字段8")
    private String bizValue8;

    @ApiModelProperty(value = "业务字段9")
    private String bizValue9;


    @ApiModelProperty(value = "业务字段10")
    private String bizValue10;


    @ApiModelProperty(value = "公司编号")
    private String companyNo;

    @ApiModelProperty(value = "公司名称")
    private String companyName;

    @ApiModelProperty(value = "公司名称")
    private String userId;
    @ApiModelProperty(value = "创建时间")
    private String cdt;


    @ApiModelProperty(value = "公司名称")
    private String userName;

    public void addTag(Label tag){
        if(this.tags==null){
            this.tags=new ArrayList<>();
        }
        if(tag!=null){
            this.tags.add(tag);
        }
    }

    public void addPrd(ProductSimple prd){
        if(this.representativeWork==null){
            this.representativeWork=new ArrayList<>();
        }
        if(prd!=null){
            this.representativeWork.add(prd);
        }
    }

    public void addPrd(Product prd){
        if(this.representativeWork2==null){
            this.representativeWork2=new ArrayList<>();
        }
        if(prd!=null){
            this.representativeWork2.add(prd);
        }
    }

}
